HtmlDoc[] x;
x <- url("http://www.google.com/search?q=" + getarg(1));

string[[string]][] tags <- getArrayByTag("a", x);

tags <- filterArrayByAttribute("class", "l", tags);

integer index;
string[[string]] value;

print("Here are the search links:");
foreach (index value in tags) {
	print(value[["href"]]);
}
